package com.arcvideo.acsplayer.config;

import android.os.Environment;

public class ApplicationConfig {

	// SERVER ADDRESS
	public static String DEFAULT_SERVER_IP = "0.0.0.0";
	public static String SERVER_ADDRESS = "http://api.hongshiyun.net/";

	public static String ACCESSKEY = "ac92adda-02b";
	public static String ACCESSSECRT = "F6AML2Dl9aZ3HFlR0HR7";
	
	
	public final static String SP_FILE_NAME = "player_sp";
	
	

	// CACHE FILE
	
	public static final String URL_NAME = "url.arcsoft";
	public static final String PACKAGE_NAME = "com.arcvideo.arcplayer";
	public static final String PACKAGE_PATH = Environment.getExternalStorageDirectory().getPath() + "/" + PACKAGE_NAME;
	public static final String URL_PATH = PACKAGE_PATH + "/" + URL_NAME;
	public static final String PLAYER_DB = Environment.getExternalStorageDirectory().getPath() + "/" + PACKAGE_NAME + "/" + "player.db";
	// BOARDCAST
	public static final String DIALOG_DISMISS = "arcvideo.arcplayer.dialog.dismiss";
	public static final String NET_ERROR = "arcvideo.arcplayer.net.error";

	// TIMEOUT
	public static final int LOGIN_TIME_OUT = 15 * 1000;
	public static final int PRESET_INIT_TIME_OUT = 45 * 1000;

	// ERROR CODE
	public static final int SUCCESS = 0;
	public static final int PASSWORD_ERROR = 1;
	public static final int SERVER_ADDRESS_ERROR = 2;
	public static final int UNKOWN_ERROR = 100;
	public static final int REQUEST_PARAMETER_ERROR = 101;
	public static final int TASK_BUSY_ERROR = 103;
	public static final int SERVER_BUSY_ERROR = 104;
	public static final int TIME_OUT_ERROR = 108;
	public static final int OPS_NOT_BIND_ERROR = 110;
	public static final int PUBLIC_PRESET_NOT_START_ERROR = 112;
	public static final int TEMPLETE_DISMATCH_PRESET_ERROR = 113;
	public static final int SERVER_NOT_START_ERROR = 6001;
	public static final int RTSP_NOT_CONFIGURE_ERROR = 7001;
	public static final int RSTP_ADDRESS_DISMATCH = 7004;
}
